package edu.pku.sei.mte.mtemodel.mtmodel.rulebased;

import edu.pku.sei.mte.mtemodel.mtmodel.ModelType;
import edu.pku.sei.mte.mtemodel.mtmodel.pattern.TPatternGraph;
import edu.pku.sei.mte.utilities.Visitable;
import edu.pku.sei.mte.utilities.Visitor;

public class Domain implements Visitable{
	private ModelType modelType;
	private Relation host;
	private TPatternGraph pattern;
	public ModelType getModelType() {
		return modelType;
	}
	public void setModelType(ModelType modelType) {
		this.modelType = modelType;
	}
	public Relation getHost() {
		return host;
	}
	public void setHost(Relation host) {
		this.host = host;
	}
	public TPatternGraph getPattern() {
		return pattern;
	}
	public void setPattern(TPatternGraph pattern) {
		this.pattern = pattern;
	}
	
	private boolean enforce;
	public boolean isEnforce() {
		return enforce;
	}
	public void setEnforce(boolean enforce) {
		this.enforce = enforce;
	}
	@Override
	public Object accept(Visitor visitor) {
		return visitor.visitDomain(this);
	}

}
